/***********************************************
* Filename:  		IRenderer.cpp
* Date:      		01/12/2014
* Mod. Date: 		01/12/2014
* Author:    		Night
* Purpose:   		Abstract class used to handle
					the initialization and 
					updates of the window.
************************************************/

#include "IRenderer.h"
#include "RenderIncludes.h"
#include "DirectX/DXHandler.h"

bool IRenderer::Create( IRenderer **_ppRenderer )
{
	if( _ppRenderer == nullptr || (*_ppRenderer ) != nullptr )
	{
		return false;
	}

	if( RENDER_TYPE == USE_DIRECTX )
	{
		(*_ppRenderer) = new CDXHandler();
	}
	else if( RENDER_TYPE == USE_OPENGL )
	{

	}

	return true;
};